package com.example.infoserver.entity;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name = "wx_msg_send")
@EntityListeners(AuditingEntityListener.class)
public class Testdata {
    @Id
    private String id;
    private String sys_id; //系统ID
    private String wp_id; //工单ID
    private Integer auto_id;  //来源表ID
    private String wx_msg_id;  //微信消息ID
    private String send_num;  //发送手机
    private String receive_num;  //接收手机
    @Column(name = "login_name")
    private String loginname;  //登录名
    @Column(name = "msg_type")
    private String msgtype;  //消息类型
    private String title;  //标题
    private String content;  //发送内容
    private String error_msg; //错误信息
    private Date submit_time;  //提交时间
    private Date reply_time;  //回复时间
    private Integer is_send; //是否发送
    private String creater; //创建者
    @CreatedDate
    @Column(updatable = false, nullable = false)
    private Date create_time;  //创建时间
    private String editor; //修改者
    @LastModifiedDate
    @Column(nullable = false)
    private Date edit_time; //修改时间
    private Integer status; //状态
    private Integer version; //版本号
}
